package david.service;

class Histogram implements Comparable<Object> {
	public String name;
	public int count;

	Histogram(String name, int count)
	{
		this.name = name;
		this.count = count;
	}
	
	@Override
	public int compareTo(Object arg0) {
		Histogram inny = (Histogram) arg0;
		if (count < inny.count)
			return 1;
		if (count > inny.count)
			return -1;
		return 0;
	}
}